package com.springboot.study.controller;

import com.springboot.study.entity.Person;
import com.springboot.study.entity.PersonMan;
import com.springboot.study.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private User user;
    @Autowired
    private Person person;
    @Autowired
    private PersonMan personMan;
    @RequestMapping("/yamltest")
    public String yamltest()
    {
        System.out.println(user);
        System.out.println("====");
        System.out.println(person);
        System.out.println("====");
        System.out.println(personMan);
        return "yamltest";
    }
}
